/* 
基础部分api的ajax的调用
*/

import { Axios } from './https.js'; // 引入ajax 

let basicurl = process.env.BASICURL;



//地区查询
export const AreaGetStatus = params => {
    return Axios(params, basicurl + `Base_Area/GetStatus`, "post");
}

//行业查询  
export const IndustryGetStatus = params => {
    return Axios(params, basicurl + `Industry/GetStatus`, "post");
}



//企业列表查询
export const GetEntInfo = params => {
    return Axios(params, basicurl + `organization_info/GetEntInfo`, "post");
}


//企业新增
export const InsertEntStatus = params => {
    return Axios(params, basicurl + `organization_info/InsertEntStatus`, "post");
}

//企业编辑
export const UpdateEntInfo = params => {
    return Axios(params, basicurl + `Organization_Info/UpdateEntInfo`, "post");
}

//企业删除
export const DeleteEntInfo = params => {
    return Axios(params, basicurl + `Organization_Info/DeleteEntInfo`, "post");
}


//部门列表查询
export const requestDepartQuery = params => {
    return Axios(params, basicurl + `Department/GetStatus`, "post");
}


//部门新增
export const requestDepartAdd = params => {
    return Axios(params, basicurl + `Department/InsertStatus`, "post");
}

//部门编辑
export const requestDepartEdit = params => {
    return Axios(params, basicurl + `Department/UpdateInfo`, "post");
}

//部门删除
export const requestDepartDel = params => {
    return Axios(params, basicurl + `Department/DeleteInfo`, "post");
}



//人员列表查询
export const requestPersonQuery = params => {
    return Axios(params, basicurl + `User_Info/GetStatus`, "post");
}


//人员新增
export const requestPersonAdd = params => {
    return Axios(params, basicurl + `User_Info/InsertStatus`, "post");
}

//人员编辑
export const requestPersonEdit = params => {
    return Axios(params, basicurl + `User_Info/UpdateStatus`, "post");
}

//人员删除
export const requestPersonDel = params => {
    return Axios(params, basicurl + `User_Info/DeleteStatus`, "post");
}

//重置密码
export const UpdateRestStatus = params => {
    return Axios(params, basicurl + `User_Info/UpdateRestStatus`, "post");
}


//修改密码
export const UpdateChangePasswordStatus = params => {
    return Axios(params, basicurl + `User_Info/UpdateChangePasswordStatus`, "post");
}



//集团关系父查询
export const requestGroupRelationQuerys = params => {
    return Axios(params, basicurl + `Organization_Relation/GetEntfuInfo`, "post");
}

//集团关系子查询
export const requestGroupRelationQueryson = params => {
    return Axios(params, basicurl + `Organization_Relation/GetEntInfo`, "post");
}


//集团关系新增
export const requestGroupRelationAdd = params => {
    return Axios(params, basicurl + `Organization_Relation/InsertStatus`, "post");
}

//集团关系移除
export const requestGroupRelationDel = params => {
    return Axios(params, basicurl + `Organization_Relation/DeleteStatus`, "post");
}




//基础信息查询
export const requestBaseSetting = params => {
    return Axios(params, basicurl + `Basic_Setting/GetStatus`, "post");
}


//角色下拉框查询
export const requestRoleQuery = params => {
    return Axios(params, basicurl + `Role_Info/GetStatus`, "post");
}


//角色列表查询
export const requestRoleTabQuery = params => {
    return Axios(params, basicurl + `Role_Info/GetAllStatus`, "post");
}


//角色新增
export const requestRoleAdd = params => {
    return Axios(params, basicurl + `Role_Info/InsertStatus`, "post");
}

//角色编辑
export const requestRoleEdit = params => {
    return Axios(params, basicurl + `Role_Info/UpdateStatus`, "post");
}


//角色所拥有的菜单（查询角色选中菜单列表）
export const requestMenuQueryRole = params => {
    return Axios(params, basicurl + `Role_Info/GetMenuStatus`, "post");
}

//所有的菜单（监管部门id查所有的菜单）
export const requestMenuQueryALLTree = params => {
    return Axios(params, basicurl + `Role_Info/GetMenuAllStatus`, "post");
}


//角色监管部门菜单绑定（新增角色菜单监管部门关系）
export const requestMenuRoleBind = params => {
    return Axios(params, basicurl + `Role_Info/InsertMenuStatus`, "post");
}


//监管部门类型查询
export const GetitemStatus = params => {
    return Axios(params, basicurl + `Role_Info/GetitemStatus`, "post");
}


//开票信息查询  
export const GetInvoice = params => {
    return Axios(params, basicurl + `Organization_Info/GetInvoice`, "get");
}

//开票信息编辑|新增
export const AddInvoice = params => {
    return Axios(params, basicurl + `Organization_Info/AddInvoice`, "post");
}

//收款账号查询
export const EntGetitemStatus = params => {
    return Axios(params, basicurl + `Organization_Info/GetitemStatus`, "get");
}

//收款账号编辑|新增
export const AddOrUpdate = params => {
    return Axios(params, basicurl + `Organization_Info/AddOrUpdate`, "post");
}